package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@TableName(value ="clear")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Clear implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 是否为大盘库
     */
    @TableField(value = "big")
    private Boolean big;

    /**
     * 盘库开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 盘库结束时间
     */
    @TableField(value = "finish_time")
    private Date finishTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Clear(boolean big) {
        this.big = big;
    }
}